package com.test.service.impl;


import com.test.mapper.TrueFalseQuestionMapper;
import com.test.mapper.WordMapper;
import com.test.model.pojo.TrueFalseQuestion;
import com.test.service.TrueFalseQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TrueFalseQuestionServiceImpl implements TrueFalseQuestionService {

    @Autowired
    TrueFalseQuestionMapper TFMapper;
    @Override
    public List<TrueFalseQuestion> getAllTFQuestions() {
        return TFMapper.getAllTrueFalseQuestions();
    }

    @Override
    public Integer getCounts() {
        return TFMapper.getCounts();
    }

    @Override
    public TrueFalseQuestion getQuestionById(Integer id) {
        return TFMapper.getQuestionById(id);
    }
}
